package cn.ljy.uem.dao;

import cn.ljy.authority.dao.BaseMapper;
import cn.ljy.uem.model.SchoolCourse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;


/**
 * 课程数据层接口
 *
 * @author 小锋
 * @date 2022/07/26
 */
@Mapper
public interface SchoolCourseMapper extends BaseMapper<SchoolCourse> {

//    /**
//     * 根据指定教师包含的课程集合
//     * @param teacherId
//     * @return
//     */
//    List<SchoolCourse> findAllCourseByTeacherId(Long teacherId);

    /**
     * 通过课程Id查找课程删除状态
     */
    @Select("select expired from school_course where id = #{Id}")
    Boolean getExpireByCourseId(Long Id);
}
